#assembler
NASM := nasm

#NASM output options
BIN_FORMAT :=-f bin 
ELF_FORMAT :=-f elf -d_BOOT_ELF_O_ 

#prerequisites and targets 
boot_bin := boot.bin
boot_asm := boot.asm
boot_o := boot.o

#phony target
.PHONY:boot_all

boot_all:$(boot_bin) $(boot_o)

#boot.bin 
$(boot_bin):$(sources) 
	$(NASM) -o $(boot_bin) $(BIN_FORMAT) $(boot_asm)

#boot.o
$(boot_o):$(boot_asm)
	$(NASM) $(ELF_FORMAT) $^

boot_clean: 
	-rm $(boot_bin) $(boot_o) 
